<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/friends/message/save}">
        <input type="hidden" name="id" th:if="${message}" th:value="${message.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">消息类型</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="msg_type" placeholder="请输入消息类型" th:value="${message?.msg_type}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否自己发送</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="is_send" placeholder="请输入是否自己发送" th:value="${message?.is_send}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">发送内容</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="content" placeholder="请输入发送内容" th:value="${message?.content}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">发送者编号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="senderid" placeholder="请输入发送者编号" th:value="${message?.senderid}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">接收者编号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="receiverid" placeholder="请输入接收者编号" th:value="${message?.receiverid}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">读取状态</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="readstate" placeholder="请输入读取状态" th:value="${message?.readstate}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>